package com.xinruke.hostels.finance.interfaces.api;

import com.xinruke.hostels.common.vo.ResultVO;
import com.xinruke.hostels.finance.interfaces.dto.UserBalanceQueryDto;
import com.xinruke.hostels.finance.interfaces.dto.UserBalanceQueryResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName UserFinanceApi
 * @CreateDate 2019/6/9
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 用户资金接口
 */
@FeignClient(value = "finance-service", fallbackFactory = UserFinanceFallback.class)
public interface UserFinanceApi {
    @PostMapping("/user/finance/balance")
    public ResultVO<UserBalanceQueryResultDTO> balance(@RequestBody UserBalanceQueryDto userBalanceQueryDto);
}
